﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 用户
    /// </summary>
    public partial class User : FullEntity<long>
    {
        public User() 
        {
            User_Roles = new HashSet<User_Role>();
            User_Organizations = new HashSet<User_Organization>();
        }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 账号
        /// </summary>
        public string UserName { get; set; } = "";
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = "";
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 用户绑定的角色列表
        /// </summary>
        public virtual ICollection<User_Role> User_Roles { get; set; }
        /// <summary>
        /// 用户绑定的组织机构列表
        /// </summary>
        public virtual ICollection<User_Organization> User_Organizations { get; set; }
    }
}